// import { methods } from "../uni_modules/uview-ui/libs/mixin/mixin.js";
import http from "./http.js";

//上传图片
export const uploadImg = http.BASE_URL + "api/common/upload";

//获取Openid
export function getOpenid(data) {
	return http.request({
			url: "api/user/getOpenid",
			method: "post",
		},
		data,
		true
	);
}


//微信登陆
export function OtherLogin(data) {
	return http.request({
			url: "api/user/OtherLogin",
			method: "post",
		},
		data,
		true
	);
}

//获取验证码
export function send(data) {
	return http.request({
			url: "api/sms/send",
			method: "post",
		},
		data,
		true
	);
}

//绑定手机号
export function bindmobile(data) {
	return http.request({
			url: "api/user/bindmobile",
			method: "post",
		},
		data,
		true
	);
}


//提交个人信息
export function profile(data) {
	return http.request({
			url: "api/user/profile",
			method: "post",
		},
		data,
		true
	);
}


//个人资料
export function MyIndex(data) {
	return http.request({
			url: "api/home/MyIndex",
			method: "post",
		},
		data,
		true
	);
}


//省份列表
export function getprovince(data) {
	return http.request({
			url: "api/home/getprovince",
			method: "post",
		},
		data,
		true
	);
}

//获取代理or工棚列表
export function getdailiandgp(data) {
	return http.request({
			url: "api/home/getdailiandgp",
			method: "post",
		},
		data,
		true
	);
}



//提交寄送订单
export function submitsendorder(data) {
	return http.request({
			url: "api/home/submitsendorder",
			method: "post",
		},
		data,
		true
	);
}



//寄送订单列表
export function sendorderlist(data) {
	return http.request({
			url: "api/home/sendorderlist",
			method: "post",
		},
		data,
		true
	);
}


//寄送订单详情
export function sendorderinfo(data) {
	return http.request({
			url: "api/home/sendorderinfo",
			method: "post",
		},
		data,
		true
	);
}


//服务列表
export function pmservice(data) {
	return http.request({
			url: "api/home/pmservice",
			method: "post",
		},
		data,
		true
	);
}


//服务详情
export function serviceinfo(data) {
	return http.request({
			url: "api/home/serviceinfo",
			method: "post",
		},
		data,
		true
	);
}



//提交服务订单
export function submitservice(data) {
	return http.request({
			url: "api/home/submitservice",
			method: "post",
		},
		data,
		true
	);
}


// 会员中心
export function vipcontent(data) {
	return http.request({
			url: "api/home/vipcontent",
			method: "post",
		},
		data,
		true
	);
}


//服务订单列表
export function servicelist(data) {
	return http.request({
			url: "api/home/servicelist",
			method: "post",
		},
		data,
		true
	);
}


//服务订单详情
export function serviceorderinfo(data) {
	return http.request({
			url: "api/home/serviceorderinfo",
			method: "post",
		},
		data,
		true
	);
}


//确认寄送
export function cofirmsend(data) {
	return http.request({
			url: "api/home/cofirmsend",
			method: "post",
		},
		data,
		true
	);
}


//意见反馈
export function submituserfeed(data) {
	return http.request({
			url: "api/home/submituserfeed",
			method: "post",
		},
		data,
		true
	);
}


//获取协议
export function contents(data) {
	return http.request({
			url: "api/home/contents",
			method: "post",
		},
		data,
		true
	);
}





//代理端登陆
export function login(data) {
	return http.request({
			url: "api/user/login",
			method: "post",
		},
		data,
		true
	);
}

// 代理寄送订单列表
export function dailisendorders(data) {
	return http.request({
			url: "api/home/dailisendorders",
			method: "post",
		},
		data,
		true
	);
}

//订单详情
export function dlsendorderinfo(data) {
	return http.request({
			url: "api/home/dlsendorderinfo",
			method: "post",
		},
		data,
		true
	);
}



//代理接收订单
export function receivesend(data) {
	return http.request({
			url: "api/home/receivesend",
			method: "post",
		},
		data,
		true
	);
}



//发出订单
export function issuesend(data) {
	return http.request({
			url: "api/home/issuesend",
			method: "post",
		},
		data,
		true
	);
}



//订单已接收
export function gpreceivesend(data) {
	return http.request({
			url: "api/home/gpreceivesend",
			method: "post",
		},
		data,
		true
	);
}


//开通会员
export function openvip(data) {
	return http.request({
			url: "api/home/openvip",
			method: "post",
		},
		data,
		true
	);
}



//羽色列表
export function yuses(data) {
	return http.request({
			url: "api/home/yuses",
			method: "post",
		},
		data,
		true
	);
}


//获取配置项
export function getConfig(data) {
	return http.request({
			url: "api/home/get_config",
			method: "post",
		},
		data,
		true
	);
}
